﻿using System;
using System.Data;
using System.Data.SqlClient;
using Microsoft.Practices.EnterpriseLibrary.Data;
using Microsoft.Practices.EnterpriseLibrary.Data.Sql;
using Csla;

namespace Model
{
    [Serializable()]
    public class RHoaDonBanBOCollection : Csla.BusinessListBase<RHoaDonBanBOCollection, RHoaDonBanBO>
    {
        #region BindingList Overrides
        protected override object AddNewCore()
        {
            RHoaDonBanBO _RHoaDonBanBO = RHoaDonBanBO.NewChildRHoaDonBanBO();
            OnAddingNew(new System.ComponentModel.AddingNewEventArgs(_RHoaDonBanBO));
            _RHoaDonBanBO.STT0 = this.Count + 1;
            Add(_RHoaDonBanBO);
            return _RHoaDonBanBO;
        }
        #endregion BindingList Overrides
        //==========================================================================

        #region Factory Methods
        private RHoaDonBanBOCollection()
        {
        }

        public static RHoaDonBanBOCollection NewRHoaDonBanBOCollection()
        {
            return new RHoaDonBanBOCollection();
        }

        public static RHoaDonBanBO NewRHoaDonBanBO()
        {
            return RHoaDonBanBO.NewChildRHoaDonBanBO();
        }

        #endregion Factory Methods
        //==========================================================================

        #region Criteria
        [Serializable()]
        private class Criteria
        {
            public Criteria()
            {
            }
        }

        [Serializable()]
        public class FilterCriteria
        {
            public FilterCriteria()
            {
            }
        }
        #endregion Criteria
        //==========================================================================

        #region Fetch
        [Transactional(TransactionalTypes.TransactionScope)]
        private void DataPortal_Fetch(SPParam spParam)
        {

        }
        #endregion Fetch
        //==========================================================================

        #region Update
        [Transactional(TransactionalTypes.TransactionScope)]
        protected override void DataPortal_Update()
        {
            Update();
        }

        internal void Update()
        {

        }
        #endregion Update
        //==========================================================================

        #region Business Method

        #endregion Business Method
        //==========================================================================
    }
}
